<?php
date_default_timezone_set('EUROPE/MOSCOW');
// This is the configuration for yiic console application.
// Any writable CConsoleApplication properties can be configured here.
return CMap::mergeArray(
	require(dirname(__FILE__).'/db.php'),
    array(
		'import'=>array(
			'application.models.*',
			'application.components.*',
		),
		'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
		'name'=>'My Console Application',
		'components' => array(
			'log'=>array(
				'class'=>'CLogRouter',
				'routes'=>array(
					array(
						'class'=>'CFileLogRoute',
						'levels'=>'error, warning',
					), 
				),
			),
		),
		//*
		'commandMap'=>array(
			'migrate'=>array(
				'class'=>'system.cli.commands.MigrateCommand',
				'migrationPath'=>'application.migrations',
				'migrationTable'=>'tbl_migration',
				'connectionID'=>'db',
				'templateFile'=>'application.migrations.template',
			),
			'sitemap' => array (
				'class' => 'application.commands.SitemapCommand'
			)
		),/**/
	)
);